package com.zqxq.file.config;

/**
 * 后缀工具
 * Created by walker on 2016/1/12.
 */
public enum SuffixContant {
    EZ("ez", "application/andrew-inset"),
    HQX("hqx", "application/mac-binhex40"),
    CPT("cpt", "application/mac-compactpro"),
    DOC("doc", "application/msword"),
    BIN("bin", "application/octet-stream"),
    LHA("lha", "application/octet-stream"),
    LZH("lzh", "application/octet-stream"),
    EXE("exe", "application/octet-stream"),
    CLASS("class", "application/octet-stream"),
    SO("so", "application/octet-stream"),
    DLL("dll", "application/octet-stream"),
    ODA("oda", "application/oda"),
    PDF("pdf", "application/pdf"),
    AI("ai", "application/postscript"),
    EPS("eps", "application/postscript"),
    PS("ps", "application/postscript"),
    SMI("smi", "application/smil"),
    SMIL("smil", "application/smil"),
    MIF("mif", "application/vnd.mif"),
    XLS("xls", "pplication/vnd.ms-excel"),
    PPT("ppt", "application/vnd.ms-powerpoint"),
    WBXML("wbxml", "application/vnd.wap.wbxml"),
    WMLC("wmlc", "application/vnd.wap.wmlc"),
    WMLSC("wmlsc", "pplication/vnd.wap.wmlscriptc"),
    BCPIO("bcpio", "application/x-bcpio"),
    VCD("vcd", "application/x-cdlink"),
    PGN("pgn", "application/x-chess-pgn"),
    CPIO("cpio", "application/x-cpio"),
    CSH("csh", "pplication/x-csh"),
    DCR("dcr", "application/x-director"),
    DIR("dir", "application/x-director"),
    DXR("dxr", "application/x-director"),
    DVI("dvi", "application/x-dvi"),
    SPL("spl", "application/x-futuresplash"),
    GTAR("gtar", "application/x-gtar"),
    HDF("hdf", "application/x-hdf"),
    JS("js", "application/x-javascript"),
    SKP("skp", "application/x-koan"),
    SKD("skd", "application/x-koan"),
    SKT("skt", "application/x-koan"),
    SKM("skm", "application/x-koan"),
    LATEX("latex", "application/x-latex"),
    NC("nc", "application/x-netcdf"),
    CDF("cdf", "application/x-netcdf"),
    SH("sh", "application/x-sh"),
    SHAR("shar", "application/x-shar"),
    SWF("swf", "application/x-shockwave-flash"),
    SIT("sit", "application/x-stuffit"),
    SV4VPIO("sv4cpio", "application/x-sv4cpio"),
    SV4CRC("sv4crc", "application/x-sv4crc"),
    TAR("tar", "application/x-tar"),
    TCL("tcl", "application/x-tcl"),
    TEX("tex", "application/x-tex"),
    TEXINFO("texinfo", "application/x-texinfo"),
    TEXI("texi", "application/x-texinfo"),
    T("t", "application/x-troff"),
    TR("tr", "application/x-troff"),
    ROFF("roff", "application/x-troff"),
    MAN("man", "application/x-troff-man"),
    ME("me", "application/x-troff-me"),
    MS("ms", "application/x-troff-ms"),
    USTAR("ustar", "application/x-ustar"),
    SRC("src", "application/x-wais-source"),
    XHTML("xhtml", "application/xhtml+xml"),
    XHT("xht", "application/xhtml+xml"),
    ZIP("zip", "application/zip"),
    AU("au", "audio/basic"),
    SND("snd", "audio/basic"),
    MID("mid", "audio/midi"),
    MIDI("midi", "audio/midi"),
    KAR("kar", "audio/midi"),
    MPGA("mpga", "audio/mpeg"),
    MP2("mp2", "audio/mpeg"),
    MP3("mp3", "audio/mpeg"),
    AIF("aif", "audio/x-aiff"),
    AIFF("aiff", "audio/x-aiff"),
    AIFC("aifc", "audio/x-aiff"),
    M3U("m3u", "audio/x-mpegurl"),
    RAM("ram", "audio/x-pn-realaudio"),
    RM("rm", "audio/x-pn-realaudio"),
    APM("rpm", "audio/x-pn-realaudio-plugin"),
    RA("ra", "audio/x-realaudio"),
    WAV("wav", "audio/x-wav"),
    PDB("pdb", "chemical/x-pdb"),
    XYZ("xyz", "chemical/x-xyz"),
    BMP("bmp", "image/bmp"),
    GIF("gif", "image/gif"),
    IEF("ief", "image/ief"),
    JPEG("jpeg", "image/jpeg"),
    JPG("jpg", "image/jpeg"),
    JPE("jpe", "image/jpeg"),
    PNG("png", "image/png"),
    TIFF("tiff", "image/tiff"),
    TIF("tif", "image/tiff"),
    DJVU("djvu", "image/vnd.djvu"),
    DJV("djv", "image/vnd.djvu"),
    WBMP("wbmp", "image/vnd.wap.wbmp"),
    RAS("ras", "image/x-cmu-raster"),
    PNM("pnm", "image/x-portable-anymap"),
    PBM("pbm", "image/x-portable-bitmap"),
    PGM("pgm", "image/x-portable-graymap"),
    PPM("ppm", "image/x-portable-pixmap"),
    RGB("rgb", "image/x-rgb"),
    XBM("xbm", "image/x-xbitmap"),
    XPM("xpm", "image/x-xpixmap"),
    XWD("xwd", "image/x-xwindowdump"),
    IGS("igs", "model/iges"),
    IGES("iges", "model/iges"),
    MSH("msh", "model/mesh"),
    MESH("mesh", "model/mesh"),
    SILO("silo", "model/mesh"),
    WRL("wrl", "model/vrml"),
    VRML("vrml", "model/vrml"),
    CSS("css", "text/css"),
    HTML("html", "text/html"),
    HTM("htm", "text/html"),
    ASC("asc", "text/plain"),
    TXT("txt", "text/plain"),
    RTX("rtx", "text/richtext"),
    RTF("rtf", "text/rtf"),
    SGML("sgml", "text/sgml"),
    SGM("sgm", "text/sgml"),
    TSV("tsv", "text/tab-separated-values"),
    WML("wml", "text/vnd.wap.wml"),
    WMLS("wmls", "text/vnd.wap.wmlscript"),
    ETX("etx", "text/x-setext"),
    XSL("xsl", "text/xml"),
    XML("xml", "text/xml"),
    MPEG("mpeg", "video/mpeg"),
    MPG("mpg", "video/mpeg"),
    MPE("mpe", "video/mpeg"),
    QT("qt", "video/quicktime"),
    MOV("mov", "video/quicktime"),
    MXU("mxu", "video/vnd.mpegurl"),
    AVI("avi", "video/x-msvideo"),
    MOVIE("movie", "video/x-sgi-movie"),
    RAR("rar", "application/octet-stream");

    private String key;
    private String contentType;
    SuffixContant(String key, String contentType) {
        this.key = key;
        this.contentType = contentType;
    }

    public String getKey() {
        return key;
    }
    public String getContentType() {
        return contentType;
    }

}
